# -*- coding:utf-8 -*-
'''
@File    :   user_interpretations.py
@Time    :   2024/11/14 21:35:39
@Author  :   xiangyu Chen
@Version :   1.0
@Contact :   yu112yu@sina.com
@License :   (C)Copyright 2017-2018, Liugroup-NLPR-CASIA
@Desc    :   None
'''

import requests

# reqUrl = "https://open.maimemo.com/open/api/v1/interpretations"
# headersList = {
#  "Accept": "application/json",
#  "Authorization": "Bearer e83571d46f57eabc863f7e0a3339bfa13d32c338eaeca1e15b660275ed5ac413" 
# }
# payload = ""

# response = requests.request("GET", reqUrl, data=payload,  headers=headersList, params="voc_id=voc-YnTuUqxKjkSSD1pHqOGyv6SdIlloesaMpGGk8uJZyJgD1YO53kFQj5trqq-BRahG")
# print(response.url)

def interpretations(voc_id,token):
    reqUrl = "https://open.maimemo.com/open/api/v1/interpretations"
    Authorization="Bearer "+token
    headersList = {
        "Accept": "application/json",
        "Authorization": Authorization 
        }
    req_params="voc_id="+voc_id
    payload = ""

    return requests.request("GET", reqUrl, data=payload,  headers=headersList, params=req_params)

print(interpretations("voc-YnTuUqxKjkSSD1pHqOGyv6SdIlloesaMpGGk8uJZyJgD1YO53kFQj5trqq-BRahG","e83571d46f57eabc863f7e0a3339bfa13d32c338eaeca1e15b660275ed5ac413").text)